Optimal. Leaf size=69 \[ -\frac{a^2+b^2}{2 b^3 d (a+b \tan (c+d x))^2}+\frac{2 a}{b^3 d (a+b \tan (c+d x))}+\frac{\log (a+b \tan (c+d x))}{b^3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0727754, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3506, 697} \[ -\frac{a^2+b^2}{2 b^3 d (a+b \tan (c+d x))^2}+\frac{2 a}{b^3 d (a+b \tan (c+d x))}+\frac{\log (a+b \tan (c+d x))}{b^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3506
Rule 697
Rubi steps
\begin{align*} \int \frac{\sec ^4(c+d x)}{(a+b \tan (c+d x))^3} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1+\frac{x^2}{b^2}}{(a+x)^3} \, dx,x,b \tan (c+d x)\right )}{b d}\\ &=\frac{\operatorname{Subst}\left (\int \left (\frac{a^2+b^2}{b^2 (a+x)^3}-\frac{2 a}{b^2 (a+x)^2}+\frac{1}{b^2 (a+x)}\right ) \, dx,x,b \tan (c+d x)\right )}{b d}\\ &=\frac{\log (a+b \tan (c+d x))}{b^3 d}-\frac{a^2+b^2}{2 b^3 d (a+b \tan (c+d x))^2}+\frac{2 a}{b^3 d (a+b \tan (c+d x))}\\ \end{align*}
Mathematica [A] time = 0.176622, size = 57, normalized size = 0.83 \[ \frac{-\frac{a^2+b^2}{2 (a+b \tan (c+d x))^2}+\frac{2 a}{a+b \tan (c+d x)}+\log (a+b \tan (c+d x))}{b^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.116, size = 84, normalized size = 1.2 \begin{align*} -{\frac{{a}^{2}}{2\,d{b}^{3} \left ( a+b\tan \left ( dx+c \right ) \right ) ^{2}}}-{\frac{1}{2\,bd \left ( a+b\tan \left ( dx+c \right ) \right ) ^{2}}}+2\,{\frac{a}{d{b}^{3} \left ( a+b\tan \left ( dx+c \right ) \right ) }}+{\frac{\ln \left ( a+b\tan \left ( dx+c \right ) \right ) }{d{b}^{3}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.14823, size = 105, normalized size = 1.52 \begin{align*} \frac{\frac{4 \, a b \tan \left (d x + c\right ) + 3 \, a^{2} - b^{2}}{b^{5} \tan \left (d x + c\right )^{2} + 2 \, a b^{4} \tan \left (d x + c\right ) + a^{2} b^{3}} + \frac{2 \, \log \left (b \tan \left (d x + c\right ) + a\right )}{b^{3}}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.26396, size = 647, normalized size = 9.38 \begin{align*} \frac{4 \, a^{2} b^{2} \cos \left (d x + c\right )^{2} - 3 \, a^{2} b^{2} - b^{4} - 2 \,{\left (a^{3} b - a b^{3}\right )} \cos \left (d x + c\right ) \sin \left (d x + c\right ) +{\left (a^{2} b^{2} + b^{4} +{\left (a^{4} - b^{4}\right )} \cos \left (d x + c\right )^{2} + 2 \,{\left (a^{3} b + a b^{3}\right )} \cos \left (d x + c\right ) \sin \left (d x + c\right )\right )} \log \left (2 \, a b \cos \left (d x + c\right ) \sin \left (d x + c\right ) +{\left (a^{2} - b^{2}\right )} \cos \left (d x + c\right )^{2} + b^{2}\right ) -{\left (a^{2} b^{2} + b^{4} +{\left (a^{4} - b^{4}\right )} \cos \left (d x + c\right )^{2} + 2 \,{\left (a^{3} b + a b^{3}\right )} \cos \left (d x + c\right ) \sin \left (d x + c\right )\right )} \log \left (\cos \left (d x + c\right )^{2}\right )}{2 \,{\left ({\left (a^{4} b^{3} - b^{7}\right )} d \cos \left (d x + c\right )^{2} + 2 \,{\left (a^{3} b^{4} + a b^{6}\right )} d \cos \left (d x + c\right ) \sin \left (d x + c\right ) +{\left (a^{2} b^{5} + b^{7}\right )} d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec ^{4}{\left (c + d x \right )}}{\left (a + b \tan{\left (c + d x \right )}\right )^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.40997, size = 84, normalized size = 1.22 \begin{align*} \frac{\frac{2 \, \log \left ({\left | b \tan \left (d x + c\right ) + a \right |}\right )}{b^{3}} - \frac{3 \, b \tan \left (d x + c\right )^{2} + 2 \, a \tan \left (d x + c\right ) + b}{{\left (b \tan \left (d x + c\right ) + a\right )}^{2} b^{2}}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]